package com.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

/* 读取表结构信息 */
public class Attachment extends BaseEntity {
    
    public Attachment() {

    }
    
    /*   */
    private String id;
    /* 名称  */
    private String name;
    /* 路径  */
    private String path;
    /* 后缀名  */
    private String suffix;
    /* 文件大小  */
    private Long fileSize;
    /* 创建时间  */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")        
    private Date createDate;
    
    public String getId() {
        return this.id;
    }
    public String getName() {
        return this.name;
    }
    public String getPath() {
        return this.path;
    }
    public String getSuffix() {
        return this.suffix;
    }
    public Date getCreateDate() {
        return this.createDate;
    }
   
    public void setId(String id) {
        this.id = id;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setPath(String path) {
        this.path = path;
    }
    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }
}